<style>
.button {
    background: url("images/left-menu-li.gif") repeat-x scroll left top #F1F6F9;
    border: 1px solid #318DAC;
    border-radius: 3px 3px 3px 3px;
    color: #318DAC;
    font-weight: lighter;
    margin: auto 5px;
    padding: 2px 5px;
    vertical-align: middle;
}
</style>
<script>
function close_iframe(){
	//$("#print_iframe").attr("src","").hide();
}
function iframe_print(){
	$("#print_iframe").attr("src","/order/order/print/code/QA0200203160001");
}

function printFp()
{
        $.ajax({
	        type: "POST",
	        async: false,
	        dataType: "html",
	        url: "/order/order/print-pop/code/QA0200203160001",
	        success: function(html) {				
				var  pwin=window.open("a.html","print",'height=100, width=100, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes,resizable=yes');   
	         	pwin.document.write(html);   
	          	pwin.document.close();             //这句很重要哦  
	         	pwin.print();
	        }
		});
         
}
</script>
<a href="javascript:iframe_print();" class='button'><{$lang.print}></a>
<a href="javascript:printFp();" class='button'><{$lang.print}>1</a>
<iframe src=""
	frameborder="0" scrolling="yes" height="100px" width="100px"
	noresize="noresize" id='print_iframe' name='print_iframe'></iframe>